<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false"%>

<%String path = request.getContextPath();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<style rel="stylesheet" type="text/css">
</style>

		<script type="text/javascript">
           function gerenzhuye()
		   {
			    var targetWinUrl="<%=path %>/auser/index.jsp";
				var targetWinName="newWin";
				var features="width="+screen.width+" ,height="+screen.height+" ,toolbar=yes, top=0, left=0, menubar=yes, scrollbars=yes, resizable=yes,location=no, status=yes";
				var new_win=window.open(targetWinUrl,targetWinName,features);
		   }
		   
		   function div1show()
		   {
		       document.getElementById("div1").style.display="block";//div123在top.jsp里
		   }
			
			function userLogout()
	        {
                 if(confirm("确定要退出本系统吗??"))
	             {
	                   var s="<%=path %>/userLogout.action";
                       window.location.href=s;
	             }
	        }
			
			function myCart()
	        {
	                 var s="<%=path %>/myCart.action";
	                 window.location.href=s;
	        }
	        
	        
	        function myOrder()
	        {
	                 var s="<%=path %>/myOrder.action";
	                 window.location.href=s;
	        }
    </script>
	</head>

	<body>
		<div class="top">
			<div class="logo">
				<img src="<%=path %>/img/111.png" width="180px" ;height="5px" ;/>
			</div>

			<div class="txt01">
				<p style="font-size: 50px; color: black;">
					&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspNIKE
				</p>
			</div>
			<div class="tel" style="margin-left: 400px; margin-top: 20px;">
				<c:if test="${sessionScope.userType !=1 }">
					<p>
						<a href="<%=path %>/qiantai/user/userReg.jsp">注册</a>&nbsp;&nbsp;
						<a href="<%=path %>/qiantai/user/userLogin.jsp">登陆</a>
					</p>
				</c:if>
				<c:if test="${sessionScope.userType ==1 }">
					<p>
						<a href="#" style="font-size: 10px; font-family: 微软雅黑;">
							欢迎您：${sessionScope.user.userRealname }</a>&nbsp;&nbsp;
						<a href="#" onclick="userLogout()"
							style="font-size: 10px; font-family: 微软雅黑;">安全退出</a>&nbsp;&nbsp;
						<a href="<%=path %>/qiantai/user/userInfo.jsp"
							style="font-size: 10px; font-family: 微软雅黑;">我的信息</a>&nbsp;&nbsp;
						<a href="#" onclick="myCart()"
							style="font-size: 10px; font-family: 微软雅黑;">购物车</a>&nbsp;&nbsp;
						<a href="#" onclick="myOrder()"
							style="font-size: 10px; font-family: 微软雅黑;">我的订单</a>&nbsp;&nbsp;
					</p>
				</c:if>
			</div>
		</div>
		<div class="nav" style="background: #000; color: #FFF">
			<div class="nav_bg" style="background: #000; color: #FFF">
				<a href="<%=path %>/qiantai/default.jsp"
					style="margin-left: 50px; font-size: 17px; font-family: 微软雅黑; color: white;">系统首页</a>
				<a href="#" onmouseover="div1show()"
					style="margin-left: 50px; font-size: 17px; font-family: 微软雅黑; color: white;">商品类别</a>
				<a href="<%=path %>/qiantai/goods/goodsSea.jsp"
					style="margin-left: 50px; font-size: 17px; font-family: 微软雅黑; color: white;">商品查询</a>
				<a href="<%=path %>/gonggaoAll.action"
					style="margin-left: 50px; font-size: 17px; font-family: 微软雅黑; color: white;">公告信息</a>
				<a href="<%=path %>/liuyanbanAll.action"
					style="margin-left: 50px; font-size: 17px; font-family: 微软雅黑; color: white;">评论留言</a>
			</div>
		</div>

		<div style="margin-left: 300px;" style="display: none;" id="div1">
			<div style="margin-top: 5px;">
				<c:forEach items="${sessionScope.cateLogList}" var="catelog">
					<a
						href="<%=path %>/goodsByCatelog.action?goodsCatelogId=${catelog.catelogId}"
						style="color: red; font-family: 微软雅黑; margin-left: 20px;">${catelog.catelogName}</a>
				</c:forEach>
			</div>
		</div>
	</body>
</html>
